package musicboxfactory;

public class MusicBoxFactory {
	public static MusicBox getlnstance(String className){
		 MusicBox m=null;
		 if("PianoBox".equals(className)){
			 m=new PianoBox();
		 }
		 if("ViolinBox".equals(className)){
			 m=new ViolinBox();
		 }
		 return m;
	}
}
